<a href='https://github.com/angular/angular.js/edit/v1.5.x/src/ng/httpBackend.js?message=docs($httpBackend)%3A%20describe%20your%20change...#L32' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>



<a href='https://github.com/angular/angular.js/tree/v1.5.8/src/ng/httpBackend.js#L32' class='view-source pull-right btn btn-primary'>
  <i class="glyphicon glyphicon-zoom-in">&nbsp;</i>View Source
</a>


<header class="api-profile-header">
  <h1 class="api-profile-header-heading">$httpBackend</h1>
  <ol class="api-profile-header-structure naked-list step-list">
    
  

    <li>
      - service in module <a href="api/ng">ng</a>
    </li>
  </ol>
</header>



<div class="api-profile-description">
  <p>HTTP backend used by the <a href="api/ng/service/$http">service</a> that delegates to
XMLHttpRequest object or JSONP and deals with browser incompatibilities.</p>
<p>You should never need to use this service directly, instead use the higher-level abstractions:
<a href="api/ng/service/$http">$http</a> or <a href="api/ngResource/service/$resource">$resource</a>.</p>
<p>During testing this implementation is swapped with <a href="api/ngMock/service/$httpBackend">mock
$httpBackend</a> which can be trained with responses.</p>

</div>






<div>
  
  <h2 id="dependencies">Dependencies</h2>
  <ul>
    <li><a href="api/ng/service/$jsonpCallbacks"><code>$jsonpCallbacks</code></a></li><li><a href="api/ng/service/$document"><code>$document</code></a></li><li><a href="api/ng/service/$xhrFactory"><code>$xhrFactory</code></a></li>
  </ul>
  

    

  

  
  
  



  
</div>


